import request from '@/utils/request'

export const getQueryCourses = (data: {
    currentPage: number;
    pageSize: number;
    courseName: string;
    status: number | string;
}) => {
  return request({
    method: 'POST',
    url: '/boss/course/getQueryCourses',
    data
  })
}

export const changeState = (params: {courseId: string | number; status: number | string}) => {
  return request({
    method: 'GET',
    url: '/boss/course/changeState',
    params
  })
}
